package com.kclm.pojo;

/**
 * @Author : lvhx
 * @Date: 2025/11/4 9:59
 * @Description:
 */
public class Wife {
    private String name;
    private Husband husband;

    public Wife(String name, Husband husband) {
        this.name = name;
        this.husband = husband;
    }

//    public void setName(String name) {
//        this.name = name;
//    }

    public String getName() {
        return name;
    }

//    public void setHusband(Husband husband) {
//        this.husband = husband;
//    }

    @Override
    public String toString() {
        return "Wife{" +
                "name='" + name + '\'' +
                ", husband=" + husband.getName() +
                '}';
    }
}
